package cn.myfirefly.moming.house.dao.mapper;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

import cn.myfirefly.moming.house.model.SpfTradeContractDetailDto;
import cn.myfirefly.moming.house.model.SpfTradeContractDto;

public interface SpfTradeContractMapper {
	
	public List<SpfTradeContractDto> getList(Map<String, Object> param);
	
	/**
	 * 为了回佣统计，查询成交合同
	 * @param param
	 * @return
	 */
	public List<SpfTradeContractDto> getListForCommission(Map<String, Object> param);
	
	public BigDecimal getTotalAmt(Map<String, Object> param);
	
	public List<Map<String, BigDecimal>> getTotalCommission(Map<String, Object> param);
	
	public SpfTradeContractDetailDto getContractDetail(Integer id);
}
